package com.vichat.room.entity;

import javax.persistence.*;

/***************
 *author: autogen
 *version: 2017-12-04 10:07:05.595
 */
@Entity
@Table(name = "room_blacklist", catalog = "roomdb")
public class RoomBlacklist implements java.io.Serializable{

	private static final long serialVersionUID = 1L;
	


    public static final String TABLE = "room_blacklist";

    /** */
	public static final String ALIAS_RID = "rid";
    /** */
	public static final String ALIAS_BID = "bid";
    /**normally, it's uid */
	public static final String ALIAS_UID = "uid";
    /** */
	public static final String ALIAS_BGRADE = "bgrade";
    /** */
	public static final String ALIAS_OP_TIME = "op_time";
	
	

 	@Id
	@Column(name = "rid", unique = true, nullable = false)
    public Long rid = 0l;

	@Column(name = "bid", unique = true, nullable = false)
    public String bid = "";
  
 	@Column(name = "uid")
    public Long uid;
  
 	@Column(name = "bgrade")
    public Long bgrade;
  
 	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "op_time")
    public java.util.Date opTime;
  





	public Long getRid() {
		return this.rid;
	}
	
	public void setRid(Long value) {
		this.rid = value;
	}

	public String getBid() {
		return this.bid;
	}
	
	public void setBid(String value) {
		this.bid = value;
	}

	public Long getUid() {
		return this.uid;
	}
	
	public void setUid(Long value) {
		this.uid = value;
	}

	public Long getBgrade() {
		return this.bgrade;
	}
	
	public void setBgrade(Long value) {
		this.bgrade = value;
	}

	public java.util.Date getOpTime() {
		return this.opTime;
	}
	
	public void setOpTime(java.util.Date value) {
		this.opTime = value;
	}


	
	public RoomBlacklist() {
	}
	
	public RoomBlacklist(boolean qryflag) {
	    if(qryflag){
	    		this.rid = null;
				this.bid = null;
				this.uid = null;
				this.bgrade = null;
				this.opTime = null;
			    }
	}


	public RoomBlacklist(
	    Long inRid,
	    String inBid,
	    Long inUid,
	    Long inBgrade,
		java.util.Date inOpTime
	 ) {
		super();
				this.rid = inRid;
				this.bid = inBid;
				this.uid = inUid;
				this.bgrade = inBgrade;
				this.opTime = inOpTime;
			}
}

